package com.xwltz.core.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @description SwaggerConfig
 * @information on version 1.0 be created by @xwltz at 2022/6/17 15:45
 */

@Data
@Component
@ConfigurationProperties(prefix = "swagger")
public class SwaggerConfig implements Serializable {

	private boolean enabled;
	private String pathMapping;
	private String title;
	private String description;
	private String version;

	private Contact contact;
	private Groups groups;

	@Data
	private static class Contact {
		private String name;
		private String email;
		private String url;
	}

	@Data
	private static class Groups {
		private String name;
		private String basePackage;
	}
}
